from fastapi import FastAPI, Request
import uvicorn


app = FastAPI()


@app.get("/")
async def home(request: Request):
    print(request.headers)
    print(request.query_params)
    print(request.query_params.get('id'))
    print(request.path_params)
    return {"message": "Hello World"}


@app.get('/shop')
async def shop():
    return {"message": "Hello Shop"}


# if __name__ == "__main__":
#     uvicorn.run(app, host="0.0.0.0", port=8888, reload=True)
